/**Filename: blockedList.h
 * Author(s): Vladimir Dudnic, Michael Groenier, Derek Fleener
 * Winter 2013 TCSS422
 * Project 2
 */

#ifndef BLOCKEDLIST
#define BLOCKEDLIST

#include<pthread.h>
#include"arrayList.h"

typedef struct blockedList{
  arrayList* al;
  pthread_mutex_t* lock;
}blockedList;

int blockedList_init(blockedList*, int);
void* blockedList_remove(blockedList*, int);
void* barray_list_get(blockedList*, int);
int blockedList_add(blockedList*, void*);
void blockedList_destroy(blockedList*);

#endif
